class AddRecommandCountToAccount < ActiveRecord::Migration
  def change
    add_column :accounts,:recommand_count,:integer

    Account.reset_column_information
    Account.find_each do |u|
      Account.reset_counters u.id, :recommands
    end

  end
end
